/* 个人中心页面特定样式 */
.profile-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.profile-sidebar {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.profile-email {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu-item {
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #666;
}

.profile-menu-item:hover {
    background-color: #f5f5f5;
}

.profile-menu-item.active {
    background-color: #4CAF50;
    color: white;
}

.profile-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.products-grid {
    display: block;
    /* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px; */
    margin-top: 20px;
}

.product-card {
    display: flex;
    background-color: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 30%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.product-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.2em;
    color: #4CAF50;
    font-weight: 600;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transaction-item {
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 15px;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.transaction-title {
    font-weight: 500;
    color: #333;
}

.transaction-date {
    color: #999;
    font-size: 0.9em;
}

.transaction-details {
    color: #666;
    font-size: 0.9em;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-item {
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 15px;
    position: relative;
}

.address-content {
    color: #666;
    margin-bottom: 10px;
}

.address-actions {
    display: flex;
    gap: 10px;
}

.address-action {
    color: #4CAF50;
    cursor: pointer;
    font-size: 0.9em;
}

.address-action.delete {
    color: #f44336;
}

.add-address-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

.add-address-button:hover {
    background-color: #45a049;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        margin-bottom: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

:root {
    --primary-color: #4e73df;
    --secondary-color: #f8f9fc;
    --text-color: #5a5c69;
}

/* body {
    background-color: #f8f9fc;
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
} */

.profile-page-container {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #224abe 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.profile-page-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.profile-page-section {
    padding: 1.5rem;
    border-bottom: 1px solid #e3e6f0;
}

.profile-page-section:last-child {
    border-bottom: none;
}

.profile-page .section-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.profile-page .section-title i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.profile-page .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.profile-page .info-label {
    font-weight: 500;
    color: #6e707e;
}

.profile-page .info-content {
    text-align: right;
    max-width: 60%;
}

.profile-page .btn-edit {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
}

.profile-page .btn-edit:hover {
    text-decoration: underline;
}

.profile-page .btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.profile-page .btn-primary-custom:hover {
    background-color: #2e59d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
}

.profile-page .edit-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d3e2;
    border-radius: 5px;
    margin-bottom: 10px;
}